from grab_ui import Ui_MainWindow
from PyQt5.QtWidgets import *
class GrabWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.ui = Ui_MainWindow()
        self.ui.setupUi(self)
        self.setWindowTitle("GrabV1")
        self.ui.pushButtonSetting.clicked.connect(self.onButtonSetting)
        self.ui.pushButtonVision.clicked.connect(self.onButtonVision)
        self.ui.pushButtonTask.clicked.connect(self.onButtonTask)

    def onButtonVision(self):
        self.ui.tabWidget.setCurrentIndex(0)

    def onButtonTask(self):
        self.ui.tabWidget.setCurrentIndex(1)

    def onButtonSetting(self):
        self.ui.tabWidget.setCurrentIndex(2)



